{% extends "InternoUserBundle::layout.html.twig" %}

{% block fos_user_content %}
<!-- BEGIN LOGO -->
<div class="logo">
	<a href="{{ app.request.getBaseURL() }}">
{# 	<img src="../../assets/admin/layout/img/logo-big.png" alt=""/>#}
	Interno software solution.
	</a>
</div>
<!-- END LOGO -->
<!-- BEGIN LOGIN -->
<div class="content">
	<!-- BEGIN LOGIN FORM -->
	<form class="login-form" action="{{ path("interno_admin_login_check") }}" method="post">
		<input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
		<h3 class="form-title">Login to your account</h3>
		{% if error %}
			<div class="alert alert-danger">
				<button class="close" data-close="alert"></button>
				<span> {{ error.messageKey|trans(error.messageData, 'security') }} </span>
			</div>
		{% endif %}
		<div class="alert alert-danger display-hide">
			<button class="close" data-close="alert"></button>
			<span>
			Enter any username and password. </span>
		</div>
		<div class="form-group">
			<!--ie8, ie9 does not support html5 placeholder, so we just show field title for that-->
			<label class="control-label visible-ie8 visible-ie9">{{ 'security.login.username'|trans({}, 'FOSUserBundle') }}</label>
			<div class="input-icon">
				<i class="fa fa-user"></i>
				<input class="form-control placeholder-no-fix"  type="text" autocomplete="off" placeholder="Username" id="username" name="_username" value="{{ last_username }}"/>
			</div>
		</div>
		<div class="form-group">
			<label class="control-label visible-ie8 visible-ie9">{{ 'security.login.password'|trans({}, 'FOSUserBundle') }}</label>
			<div class="input-icon">
				<i class="fa fa-lock"></i>
				<input class="form-control placeholder-no-fix" type="password" autocomplete="off" placeholder="Password" name="_password" id="password"/>
			</div>
		</div>
		<div class="form-actions">
			<label class="checkbox">
			<input type="checkbox" id="remember_me" name="_remember_me" value="on"/> {{ 'security.login.remember_me'|trans({}, 'FOSUserBundle') }} </label>
			<button type="submit" name="_submit" id="_submit" class="btn green-haze pull-right">
			{{ 'security.login.submit'|trans({}, 'FOSUserBundle') }} <i class="m-icon-swapright m-icon-white"></i>
			</button>
		</div>
	</form>
	<!-- END LOGIN FORM -->
</div>
<!-- END LOGIN -->
<!-- BEGIN COPYRIGHT -->
<div class="copyright">
	 2014 &copy; Interno. software solution
</div>
<!-- END COPYRIGHT -->
{% endblock fos_user_content %}
